package dk.lector.exception;

import android.util.Log;

public class TSMobileException extends RuntimeException {

	private Exception e;
	private Class<?> c;
	private String method;
	private String msg;

	public TSMobileException(Exception e, Class<?> c, String method, String msg) {
		super(msg);
		this.e = e;
		this.c = c;
		this.method = method;
		this.msg = msg;
		Log.d("TSMobileException", "ExceptionThrown: "
				+ e.getClass().getSimpleName() + "(" + e.getMessage() + ")"
				+ " - in " + c.getSimpleName() + ", " + method + ", " + msg);
	}

	public Exception getE() {
		return e;
	}

	public void setE(Exception e) {
		this.e = e;
	}

	public Class<?> getC() {
		return c;
	}

	public void setC(Class<?> c) {
		this.c = c;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
